package commands;

/**
 * Represents some Command-related failure (for example, a Command with
 * arguments inappropriately set to null).
 */
public class CommandException extends Exception
{
	/**
	 * Create a new CommandException on the given Command,
	 * with a descriptive message
	 * @param command the offending Command
	 * @param message an error message to be displayed
	 */
	public CommandException(Command command, String message) {
		super("For Command \"" + command + "\": " + message);
	}
}